package com.bytz.modules.cms.reseller.entity;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bytz.common.aspect.annotation.Dict;
import com.bytz.common.entity.IEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 莱宝CMS—经销商管理—经销商基本信息表
 * </p>
 *
 * @author KyleWang
 * @since 2022-10-10
 */
@Data
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper = false)
@TableName("cms_reseller")
@ApiModel(value = "Reseller对象", description = "莱宝CMS—经销商管理—经销商基本信息表")
public class Reseller implements Serializable, IEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    private String id;

    @ExcelProperty("登录账号")
    @ApiModelProperty(value = "登录账号")
    private String username;

    @ExcelProperty("经销商名称")
    @ApiModelProperty(value = "经销商名称")
    private String resellerName;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "md5密码盐")
    private String salt;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ExcelProperty("联系人")
    @ApiModelProperty(value = "联系人")
    private String contactPerson;

    @ExcelProperty("电子邮件")
    @ApiModelProperty(value = "电子邮件")
    private String email;

    @ExcelProperty("电话")
    @ApiModelProperty(value = "电话")
    private String phone;

    @ExcelProperty("区域")
    @ApiModelProperty(value = "区域")
    private String district;

    @ExcelProperty("城市")
    @ApiModelProperty(value = "城市")
    private String city;

    @ExcelProperty("行业")
    @ApiModelProperty(value = "行业")
    private String industry;

    @ApiModelProperty(value = "等级：IV1、SV1、VTS1")
    private String levels;

    @ApiModelProperty(value = "关联销售：销售1、销售2")
    private String sales;

    @ApiModelProperty(value = "状态(1-已启用,2-已停用)")
    private String status;

    @ExcelProperty("是否必须上传EC资料")
    @ApiModelProperty(value = "是否必须上传EC资料（0-否,1-是）")
    @Dict(dicCode = "boolean_flag")
    private String ecRequired;

    @ApiModelProperty(value = "支付口令")
    private String paymentPassword;

    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
    @TableLogic
    private Integer delFlag;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}
